package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.AbilityInstitution;
import com.ruoyi.mapper.AbilityInstitutionMapper;
import com.ruoyi.service.IAbilityInstitutionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 机构Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-20
 */
@Service
public class AbilityInstitutionServiceImpl implements IAbilityInstitutionService
{
    @Autowired
    private AbilityInstitutionMapper abilityInstitutionMapper;

    /**
     * 查询机构
     * 
     * @param ID 机构主键
     * @return 机构
     */
    @Override
    public AbilityInstitution selectAbilityInstitutionByID(Long ID)
    {
        return abilityInstitutionMapper.selectAbilityInstitutionByID(ID);
    }

    /**
     * 查询机构列表
     * 
     * @param abilityInstitution 机构
     * @return 机构
     */
    @Override
    public List<AbilityInstitution> selectAbilityInstitutionList(AbilityInstitution abilityInstitution)
    {
        return abilityInstitutionMapper.selectAbilityInstitutionList(abilityInstitution);
    }

    /**
     * 新增机构
     * 
     * @param abilityInstitution 机构
     * @return 结果
     */
    @Override
    public int insertAbilityInstitution(AbilityInstitution abilityInstitution)
    {
        return abilityInstitutionMapper.insertAbilityInstitution(abilityInstitution);
    }

    /**
     * 修改机构
     * 
     * @param abilityInstitution 机构
     * @return 结果
     */
    @Override
    public int updateAbilityInstitution(AbilityInstitution abilityInstitution)
    {
        return abilityInstitutionMapper.updateAbilityInstitution(abilityInstitution);
    }

    /**
     * 批量删除机构
     * 
     * @param IDs 需要删除的机构主键
     * @return 结果
     */
    @Override
    public int deleteAbilityInstitutionByIDs(Long[] IDs)
    {
        return abilityInstitutionMapper.deleteAbilityInstitutionByIDs(IDs);
    }

    /**
     * 删除机构信息
     * 
     * @param ID 机构主键
     * @return 结果
     */
    @Override
    public int deleteAbilityInstitutionByID(Long ID)
    {
        return abilityInstitutionMapper.deleteAbilityInstitutionByID(ID);
    }
}
